﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet;
using System.Data;

namespace WebSite.UserSetting
{
    public partial class GoldCoffer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LoadContent();
            }
        }

        #region 加载内容
        private void LoadContent()
        {
            UsersHelper uhelper=new UsersHelper();
            Users uinfo=UserBase.GetCurrentUser();
            string userid = uinfo.ID;
            //加载昨日发布创作数
            litBlogNum1.Text = uhelper.GetUserBlogNum(1, userid).ToString();

            //昨日收视量
            litPVNum1.Text = uhelper.GetUserPVNum(1, userid).ToString();

            //昨日获得友赢豆
            litMoney1.Text = uhelper.GetUserMoney(1, userid).ToString();

            //本月创作数
            litBlogNum2.Text = uhelper.GetUserBlogNum(2, userid).ToString();

            //本月收视量
            litPVNum2.Text = uhelper.GetUserPVNum(2, userid).ToString();

            //本月友赢豆
            litMoney2.Text = uhelper.GetUserMoney(2, userid).ToString();

            //半年创作数
            litBlogNum3.Text = uhelper.GetUserBlogNum(3, userid).ToString();

            //半年收视量
            litPVNum3.Text = uhelper.GetUserPVNum(3, userid).ToString();

            //半年友赢豆
            litMoney3.Text = uhelper.GetUserMoney(3, userid).ToString();

            //一年创作数
            litBlogNum4.Text = uhelper.GetUserBlogNum(4, userid).ToString();

            //一年收视量
            litPVNum4.Text = uhelper.GetUserPVNum(4, userid).ToString();

            //一年友赢豆
            litMoney4.Text = uhelper.GetUserMoney(4, userid).ToString();

            //所有创作数
            litBlogNum5.Text = uhelper.GetUserBlogNum(5, userid).ToString();

            //所有收视量
            litPVNum5.Text = uhelper.GetUserPVNum(5, userid).ToString();

            //所有友赢豆
            litMoney5.Text = uhelper.GetUserMoney(5, userid).ToString();
        }
        #endregion
    }
}